package opdracht3;

/**
 * Class that sets up everything and starts the threads.
 * @author Sander & Dave
 *
 */
public class World {
	
	private static final int NR_OF_CUSTOMERS = 15;
	private static final int NR_OF_BUYERS = 10;

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		
		Autoshow show = new Autoshow();
		
		Thread[] customers = new Thread[NR_OF_CUSTOMERS];
		Thread[] buyers = new Thread[NR_OF_BUYERS];
		
		for(int i = 0; i < NR_OF_CUSTOMERS; i++){
			customers[i] = new Viewer("Viewer " + i, show);
			customers[i].start();
		}
		
		for(int i = 0; i < NR_OF_BUYERS; i++){
			buyers[i] = new Buyer("Buyer " + i, show);
			buyers[i].start();
		}
		

	}

}